home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part1 / 388 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  840 b 

  1. Path: news.iacnet.com!Newsmaster
  2. From: Mark Thomas <mark_thomas@sandpoint.com>
  3. Newsgroups: comp.lang.c
  4. Subject: time/date algorithms
  5. Date: Thu, 04 Jan 1996 17:52:15 -0500
  6. Organization: SandPoint Company
  7. Message-ID: <30EC5A1F.3DE0@sandpoint.com>
  8. NNTP-Posting-Host: clipper.sandpoint.ziff.com
  9. Mime-Version: 1.0
  10. Content-Type: text/plain; charset=us-ascii
  11. Content-Transfer-Encoding: 7bit
  12. X-Mailer: Mozilla 2.0b3 (WinNT; I)
  13.  
  14. A co-worker of mine is looking for an algorithm what
  15. works something like this:  given a week number 1-52
  16. (or 0-51 I suppose) and a year, the month and day of the
  17. sunday in that week is output.  He swears he's seen
  18. it in a book, and doesn't want to have to re-create it.
  19.  
  20. Anyone have this [bizarre] algorithm laying around somewhere,
  21. or know where it can be found?  Please reply by email
  22. if you do -- thanks alot.
  23.  
  24. Mark
  25.